<!DOCTYPE html>
<!-- suppress ThymeleafVariablesResolveInspection -->
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <link href="http://member.chinaacc.com/css/member/index2017.css" rel="stylesheet" type="text/css" />
</head>

<style>
    #dddd{
        margin: 0px auto;
        margin-top: 40px;
    }
</style>
<body>
<input type="hidden" id="callBack" value="" />
<!--登录-->
<div class="chaaTcLR_dl chaaTcLR_dlzc" style="display: block;" id="dddd">
    <div class="chaaTcLR_dl_in">
        <em class="chaaTcLR_di_close" onclick="closeWin()"></em>
        <div class="chaaTcLR_dl_tit">
            登录南瓜课堂<a href="/user/toReg">没有账号，免费注册</a>
        </div>
        <div class="chaaTcLRD_d chaaTcLRD_d01 clearfix pr">
            <p class="fl"></p>
            <div class="input_d fl pr">
                <label class="abs"></label>
                <input type="text" placeholder="手机号/邮箱" autocomplete="off" id="userPhone" name="userPhone"/>
            </div>
        </div>
        <div class="chaaTcLRD_d chaaTcLRD_d02 clearfix pr">
            <p class="fl"></p>
            <div class="input_d fl pr">
                <label class="abs"></label>
                <input type="password" placeholder="密码" autocomplete="new-password" id="userPwd"  name="userPwd"/>
            </div>
        </div>
        <div class="chaaTcLRD_dpsms clearfix pr" id="randcodeDisplay"
             style="display: none;">
            <div class="input_d fl clearfix">
                <p class="fl"></p>
                <div class="input_d_d fl pr">
                    <label class="abs"></label> <input type="text" placeholder="验证码" autocomplete="off" id="randcode" />
                </div>
            </div>
            <img src="/static/picture/btn01.jpg" id="randcodeImg" class="img_sms fr" />
        </div>
        <div class="chaaTcLRD_dTip">
            <span id="ck_u"><input type="radio" id="ck_user" name="c1" value="用户登录"> 用户登录 <input type="radio" id="ck_teacher" name="c1" value="讲师登录"> 讲师登录</span><br />
        </div>
        <div class="chaaTcLRD_dTip">
<!--            <label class="auto_login" id="next_log_flag" data-flag="0">下次自动登录</label>-->
            <input type="checkbox" class="auto_login" id="next_log_flag" data-flag="0">下次自动登录
            <a target="_blank"
               href="/user/forgetpwd">忘记密码</a>
        </div>
        <div class="chaaTcLRD_dBtn pr">
            <span class="tip"></span>
            <a href="javascript:void(0)"
               class="chaaTcLRD_log_btn" id="but">登 录</a>   <!-- id="submit_log_btn" -->
        </div>
        <div class="chaaTcLRD_dother">
            <p class="fl">其他登录方式：</p>
            <a href="javascript:void(0)" class="a_weixin" id="weixinBtn"></a>
            <a href="javascript:void(0)" class="a_qq" id="qqBtn"></a>
            <a href="javascript:void(0)" class="a_weibo" id="weiboBtn"></a>
        </div>
    </div>
</div>
<script type="text/javascript" src="/static/js/gs/zixie/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/static/js/gs/zixie/login.js"></script>

<script type="text/javascript">

    //点击下次自动登录
    $('.auto_login').click(function() {
        var $this_obj = $(this);
        if ($this_obj.attr('data-flag') != '1') {
            $this_obj.removeClass('disab').attr('data-flag', '1');
        } else {
            $this_obj.addClass('disab').attr('data-flag', '');
        }
    });

    // 登录界面聚焦效果
    $('.chaaTcLR_dl_in input').focus(
        function() {
            var $this_obj = $(this);
            $this_obj.parents('.chaaTcLRD_d,.chaaTcLRD_dpsms').removeClass(
                'error').addClass('success');
        }).blur(function() {
        var $this_obj = $(this);
        $this_obj.parents('.chaaTcLRD_d,.chaaTcLRD_dpsms').removeClass('success');
    });
    function doCallback(fn, args) {
        if(args==""||args=="[]"||args==undefined){
            fn.apply(this);
        }else{
            fn.apply(this, args);
        }
    }
    function addAutoLoginFlag2Cookie(flag){
        if(flag != 1){
            flag = 0;
        }
        var exp = new Date();
        exp.setDate(exp.getDate()+7); //7天以内自动登录
        setCookie("_autoLoginFlag",flag,exp);
    }
    function setCookie(name,value,exp){
        if(null==exp){
            exp = new Date();
            var tommorrow=new Date();
            tommorrow.setDate(tommorrow.getDate()+1);
            tommorrow.setHours(0);
            tommorrow.setMinutes(0);
            tommorrow.setSeconds(0);
            tommorrow.setMilliseconds(0);
            exp.setTime(tommorrow.getTime()); //明天0点过期
        }
        document.cookie = name + "="+ escape (value) + ";path=/;expires=" + exp.toGMTString();
    }
    function getCookie(name){
        var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
        if(arr=document.cookie.match(reg))
            return unescape(arr[2]);
        else
            return null;
    }
</script>
</body>
</html>